import { createWebHistory, createRouter } from "vue-router"

const routes = [
  { path: '/', redirect: '/home' },   // 实现重定向
  {
    path: '/home',
    component: () => import('@/views/layout/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router